//
//  IMUser.m
//  MLIM
//
//  Created by molon on 15/7/5.
//  Copyright (c) 2015年 molon. All rights reserved.
//

#import "IMUser.h"
#import <MLKit.h>

@implementation IMUser

- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super init];
    if (self) {
        self.avatarURL = [coder decodeObjectForKey:SELSTR(avatarURL)];
        self.name = [coder decodeObjectForKey:SELSTR(name)];
        self.clientId = [coder decodeObjectForKey:SELSTR(clientId)];
        self.extraObject = [coder decodeObjectForKey:SELSTR(extraObject)];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.avatarURL forKey:SELSTR(avatarURL)];
    [aCoder encodeObject:self.name forKey:SELSTR(name)];
    [aCoder encodeObject:self.clientId forKey:SELSTR(clientId)];
    [aCoder encodeObject:self.extraObject forKey:SELSTR(extraObject)];
}

@end
